package com.android.aishangauction.model.auction;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2017/9/9.
 */

public class AuctionActivityData implements Serializable {
    private String type;
    private List<ListBean> list;
    @Override
    public String toString() {
        return "{" + "\"type\"" + ":" + type +
                "," + "\"list\"" + ":" + list +"}";

    }
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }
    public static class ListBean implements Serializable, MultiItemEntity
    {
        private int itemType;
        public static final int THREE = 3;

        public ListBean(int itemType,String id,String period,String title,String thumb,String price,int time,int start,String mid,String username) {
            this.itemType = itemType;
            this.id = id;
            this.period =  period;
            this.title = title;
            this.thumb = thumb;
            this.price = price;
            this.time = time;
            this.start = start;
            this.mid = mid;
            this.username =username;
        }

        public ListBean(int itemType,String id,String period,String title,String thumb,String price,int time,
                        int start,String mid,String username,long startTime,long endTime) {
            this.itemType = itemType;
            this.id = id;
            this.period =  period;
            this.title = title;
            this.thumb = thumb;
            this.price = price;
            this.time = time;
            this.start = start;
            this.mid = mid;
            this.username =username;
            this.startTime =startTime;
            this.endTime =endTime;
        }

        public ListBean(int itemType)
        {
            this.itemType = itemType;
        }
        @Override
        public int getItemType() {
            return itemType;
        }
        @Override
        public String toString() {
            return "{" +

                    "\"id\"" + ":" + id+","
                    +"\"period\"" + ":" + period+","
                    + "\"title\"" + ":" + title+ ","
                    + "\"thumb\"" + ":" + thumb+ ","
                    +"\"price\"" + ":" + price+","
                    +"\"market_price\"" + ":"+ market_price+","
                     +"\"time\"" + ":" +"\""+ time+"\""+","
                    +"\"start\"" + ":" +"\""+ start+"\""+","
                    +"\"mid\"" + ":" +mid+","
                    +"\"username\"" + ":" + username+ "}";
//            ","
//                    +"\"start\"" + ":" +"\""+ start+"\""+","
//                    +"\"mid\"" + ":" +"\""+ mid+"\""+","
//                    +"\"username\"" + ":" +"\""+ username+"\""+

        }
        private String id;
        private String period;
        private String title;
        private String thumb;
        private String price;
        private String market_price;
        private int time;
        private int start;
        private String mid;
        private String  username;
        private long  startTime;
        private long  endTime;

        public long getStartTime() {
            return startTime;
        }

        public void setStartTime(long startTime) {
            this.startTime = startTime;
        }

        public long getEndTime() {
            return endTime;
        }

        public void setEndTime(long endTime) {
            this.endTime = endTime;
        }

        public int getStart() {
            return start;
        }

        public void setStart(int start) {
            this.start = start;
        }

        public int getTime() {
            return time;
        }

        public void setTime(int time) {
            this.time = time;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getMarket_price() {
            return market_price;
        }

        public void setMarket_price(String market_price) {
            this.market_price = market_price;
        }

        public String getMid() {
            return mid;
        }

        public void setMid(String mid) {
            this.mid = mid;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getThumb() {
            return thumb;
        }

        public void setThumb(String thumb) {
            this.thumb = thumb;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getPeriod() {
            return period;
        }

        public void setPeriod(String period) {
            this.period = period;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }
    }
}
